/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

export function hashToCurrent(hash: string): number {
  const page = Number(hash.replace('#', ''));
  return page > 0 ? page : 1;
}
